﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using HotelManagement._04.OBJECT;
using HotelManagement._03.DAO;

namespace HotelManagement._02.BUS
{
    class PaymentInfoBUS
    {
        PaymentInfoDAO m_PaymentInfoDAO = new PaymentInfoDAO();
        public DataTable ViewPayment()
        {
            return m_PaymentInfoDAO.ViewPayment("pr_tblPayment_SelectAll");
        }
        public bool AddPayment(Payment ip_Payment)
        {
            return m_PaymentInfoDAO.AddPayment(ip_Payment, "pr_tblPayment_Insert");
        }
        public bool UpdatePayment(Payment ip_Payment)
        {
            return m_PaymentInfoDAO.UpdatePayment(ip_Payment, "pr_tblPayment_Update");
        }
        public bool DeletePayment(Payment ip_Payment)
        {
            return m_PaymentInfoDAO.DeletePayment(ip_Payment, "pr_tblPayment_DeleteRow");
        }
        public DataTable SearchPayment(string ip_KeyWord)
        {
            return m_PaymentInfoDAO.SearchPayment(ip_KeyWord, "pr_tblPayment_Search");
        }
    }
}
